import commonPromise from './http'
const apiFetch = {
  // 测试API
  gushiFetch: () => commonPromise({ url: 'https://v1.jinrishici.com/all.json', method: 'get' }),
  demoGet: (params) => commonPromise({ params, url: '/admin/role/RoleDelete', method: 'get' }), // demo get
  demoPost: (data) => commonPromise({ data, url: '/admin/role/RoleDelete', method: 'post' }), // demo post
}
export default apiFetch